public class Main {
    public static void main(String[] args) {
        int a = Integer.parseInt(args[0]);

        int b = Integer.parseInt(args[1]);

        String userDir = System.getProperty("user.dir");

        String cmd = "java -version";
        try {
            Process process = Runtime.getRuntime().exec(cmd);
            System.out.println("执行结果：" + process.toString());

        } catch (Exception e) {
            e.printStackTrace();
        }

        System.out.println("\n" + "结果=" + (a + b));
        System.out.println("\n当前目录=" + userDir);

    }
}
